package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * @author およそ神
 * @version JDK 1.8
 * 流量监控
 */
@SpringBootApplication
@EnableHystrixDashboard//开启监控依赖
public class PersonListenHystrix9003 {
    /**
     * 监控页面：http://localhost:9003/hystrix
     * 监控地址：http://localhost:1234/actuator/hystrix.stream
     * 监控调试: http://localhost:1234/person/searchById/111 需要先调用的接口，不然页面显示不出来
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(PersonListenHystrix9003.class);
    }
}
